import groovy.sql.*

String url = 'jdbc:h2:~/h2data/tech11'
String driver = 'org.h2.Driver'
String user = 'sa'
String pwd = ''

def db = Sql.newInstance(url, user, pwd, driver)

String sql = new File('yoka/init.sql').text

try{
	db.execute(sql)
}catch(e){
	e.printStackTrace()
}finally{
	db.close()
}